﻿<%@ Page Language="C#" MasterPageFile="~/Frame.master" AutoEventWireup="true" CodeFile="timeTracking.aspx.cs" Inherits="timeTracking" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleHolder" Runat="Server">
    Chi tiết chấm công nhân viên   
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentHolder" Runat="Server">

    <script type="text/javascript">
	$(document).ready(function () {
	    $("#tableOne").tablesorter({ debug: false, sortList: [[0, 0]], widgets: ['zebra'] })
        .tablesorterPager({ container: $("#pagerOne"), positionFixed: false })
        .tablesorterFilter({ filterContainer: $("#filterBoxOne"),
            filterClearContainer: $("#filterClearOne"),
            filterColumns: [0, 1, 2, 3, 4, 5],
            filterCaseSensitive: false
        });	         
	}); 
	</script>
 <table border="0" cellspacing="0" cellpadding="0" class="margin_l50" width="870">
        <tr>
            <td align="left" width="350" valign="top">
                <table width="350" border="0" cellpadding="0" cellspacing="0" class="margin_b5">
                    <tr>
                        <td align="left" valign="top" class="titleInfo">
                            Thông tin nhân viên
                        </td>
                    </tr>
                </table>
                <table width="350" border="0" cellspacing="0" cellpadding="5" class="margin_l20 margin_b10">
                    <tr>
                        <td width="150" align="left" valign="top" class="dot">
                            Mã NV: <strong>
                                <asp:Label ID="lblCode" runat="server" Text=""></asp:Label></strong>
                        </td>
                        <td align="left" valign="top" class="dot">
                            Tên NV: <strong>
                                <asp:Label ID="lblFullName" runat="server" Text=""></asp:Label></strong>
                        </td>
                    </tr>
                    <tr>
                        <td align="left" valign="top" class="dot">
                            Tài khoản: <strong>
                                <asp:Label ID="lblUser" runat="server" Text=""></asp:Label></strong>
                        </td>
                        <td align="left" valign="top" class="dot">
                            Chức vụ: <strong>
                                <asp:Label ID="lblPosition" runat="server" Text=""></asp:Label></strong>
                        </td>
                    </tr>
                </table>
            </td>
            <td align="right" valign="top">
            <asp:Label ID="lblMsg" runat="server" ForeColor="#FF3300"></asp:Label>
                <table width="520" border="0" cellpadding="0" cellspacing="0" class="margin_b5">
                    <tr>
                        <td align="right" width="510" valign="top" class="titleInfo">
                            <table cellpadding="0" cellspacing="0"  width="100%">
                                <tr>
                                    <td align="left" width="454"> Chi tiết chấm công</td>
                                    
                                    <td class="export" align="right"><asp:LinkButton ID="btnExport" runat="server" 
                                            onclick="btnExport_Click">Xuất file</asp:LinkButton></td>
                                </tr>
                            </table>
                           
                        </td>
                    </tr>
                </table>
                <asp:Repeater ID="rptTracking" runat="server" EnableViewState="false" 
                    onitemdatabound="rptTracking_ItemDataBound">
        <HeaderTemplate>
            <table id="tableOne" class="yui" align="right" width="520" border="0" align="center" cellpadding="5" cellspacing="1" >
                <thead>
                    <tr>
                        <th>STT</th>
                        <th width="50" align="center" class="tableheader">Ca</th>
                        <th width="130" align="center" class="tableheader">Thời gian đăng nhập</th>
                        <th width="130"  align="center" class="tableheader">Thời gian đăng xuất</td>
                        <th width="100" align="center" class="tableheader">Tổng thời gian</td>
                    </tr>
                </thead>
                <tbody>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center"><asp:Label ID="lblNo" runat="server" Text="<%# Container.ItemIndex + 1 %>"></asp:Label></td>
                 <td align="center" valign="top">
                    <%#Eval("ShiftName")%>
                </td>
                <td align="center" valign="top">
                    <%# DataBinder.Eval(Container.DataItem, "LoginTime", "{0: dd/MM/yyyy HH:mm}")%>
                    <asp:HiddenField ID="hdnFrom" runat="server" Value=' <%# DataBinder.Eval(Container.DataItem, "LoginTime", "{0: dd/MM/yyyy HH:mm}")%>' />
                </td>
                <td align="center" valign="top">
                    <%# DataBinder.Eval(Container.DataItem, "LogOutTime", "{0: dd/MM/yyyy HH:mm}")%>
                    <asp:HiddenField ID="hdnTo" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "LogOutTime", "{0: dd/MM/yyyy HH:mm}")%>' />
                </td>
                <td align="center" valign="top">
                    <asp:Label ID="lblTotal" runat="server"></asp:Label>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
        </tbody>
	    <tfoot>
	        <tr id="pagerOne">
	            <td colspan="5" class="tableFooter padding_t5" >
		            <img title="Trang đầu" alt="Trang đầu" src="images/first.png" class="first"/>
		            <img src="images/prev.png" class="prev" title="Trang trước" alt="Trang trước"/>
		            <input type="text" class="pagedisplay"/>
		            <img src="images/next.png" class="next" title="Trang kế" alt="Trang kế"/>
		            <img src="images/last.png" class="last" title="Trang sau cùng" alt="Trang sau cùng"/>&nbsp;&nbsp;
		            <select class="pagesize">
			            <option selected="selected"  value="10">10</option>
			            <option value="20">20</option>
			            <option value="30">30</option>
			            <option  value="40">40</option>
		            </select>
		        </td>
	        </tr>
	    </tfoot>
        </table>
        </FooterTemplate>
               </asp:Repeater>
            </td>
        </tr>
    </table>
</asp:Content>

